package com.scfire.bean

import com.scfire.weixin.WeiXinService
import com.scfire.weixin.*;
class ShareInfo {

	String appid;
	String nonceStr;
	String signature;
	long timestamp;
	
	String title;
	String description;
	String shareUrl;
	String imgUrl;
	String redirect;
	
	
	public ShareInfo(WeiXinService service, String url, String title, String descrption, String shareUrl,  String imgurl, String redirectUrl){
		
		Map map = service.jsapiTicketSign(url)
		this.appid = WeiXinConstants.appid
		this.nonceStr = map.get("noncestr")
		this.signature = map.get("sign")
		this.timestamp = map.get("timestamp")
		
		this.title = title
		this.description = descrption
		this.shareUrl = shareUrl
		this.imgUrl = imgurl
		this.redirect = redirectUrl
	}
}
